package com.example.daggerdemo;

import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * Date:2023/6/5
 * Time:10:07
 * author:wushengqi
 */
class DemoLiftcycleObs implements LifecycleObserver {
    private static final String TAG = "DemoLiftcycleObs";

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    void onCreate(LifecycleOwner owner){
        Log.d(TAG, "owner-" + owner.toString() + "  onCreate");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    void onStart(LifecycleOwner owner){
        Log.d(TAG, "owner-" + owner.toString() + "  onStart");
    }
}
